<template>
    <el-tabs :tab-position="'left'" style="height: 100%;">
        <el-tab-pane label="教师团队">
            <Teacher ref="teacher"></Teacher>
        </el-tab-pane>
        <el-tab-pane label="全部学生">
            <Student ref="student"></Student>
        </el-tab-pane>
    </el-tabs>
</template>
<script>
import Teacher from "./teacher.vue";
import Student from "./student.vue";

export default {
    name: "allMember",
    components: {
        Teacher,
        Student
    },
    data() {
        return {
        }
    },
    methods: {
        init(){
            this.$refs.teacher.getTeacherTeam();
            this.$refs.student.getStudentTeam();
        },
    },
    mounted(){
        this.init();
    }
}
</script>
<style scoped lang="less"></style>